#ifndef HOMEPAGE_H
#define HOMEPAGE_H

#define BtnWidth 100
#define BtnHeight 40

#include <QObject>
#include <QLabel>
#include <QVBoxLayout>
#include <QLineEdit>
#include <QComboBox>
#include "component/BlogListWidget.h"

class HomePage : public QWidget
{
    Q_OBJECT
public:
    explicit HomePage(QWidget *parent = nullptr);
    void searchBlogs(const QString &keyword); // 搜索方法

private:
    QLineEdit *searchBox;

signals:
    void openDetailPage();
};

#endif // HOMEPAGE_H
